package cn.fuego.busrental.ui.user;

import cn.fuego.busrental.R;
import cn.fuego.busrental.R.layout;
import cn.fuego.busrental.ui.StyleTour.ContainBusActivity;
import cn.fuego.misp.ui.base.MispBaseActivtiy;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.RelativeLayout;

public class MyOrderActivity extends MispBaseActivtiy {

	private RelativeLayout nearByplayLayout,containBusLayout;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
	}
	

	@Override
	public void initRes() {
		this.activityRes.setAvtivityView(R.layout.activity_my_order);
		this.activityRes.getButtonIDList().add(R.id.near_play_relativeLayout);
		this.activityRes.getButtonIDList().add(R.id.contain_bus_relativeLayout);
	}
	
	public static void jump(Context context)
	{
		Intent intent = new Intent();
		intent.setClass(context, MyOrderActivity.class);		
		context.startActivity(intent);
	}


	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.near_play_relativeLayout:
			NearPlayOrderActivity.jump(this);
			break;
		case R.id.contain_bus_relativeLayout:
			ContainBusOrderActivity.jump(this);
			break;

		default:
			break;
		}
	}
}
